package com.vhall.component.service.gift.common;

/**
 * 常量类
 *
 * @author zhangtao
 */
public interface Consts {

    int DELETED = 1;
    int NOT_DELETED = 0;

    /**
     * 8小时TOKEN超时
     */
    int TOKEN_EXPIRE = 28800;

    /**
     * 因为和php序列化格式不兼容，token缓存key需要加此前缀
     */
    String TOKEN_PREFIX = "vhall:largess:token:";

    /**
     * 生成token拼接用
     */
    String SSO_TOKEN = "sso:token:";

    /**
     * 账号类型：邮箱
     */
    String ACCOUNT_TYPE_EMAIL = "email";
    /**
     * 账号类型：手机号
     */
    String ACCOUNT_TYPE_PHONE = "phone";
    /**
     * 账号类型：用户名
     */
    String ACCOUNT_TYPE_NAME = "name";

    String REDIS_DB_KEY_GIFT_RANK = "ssc:gift:rank:";
    String REDIS_DB_KEY_GIFT_USER = "ssc:gift:user:";

    //endregion

    int DEFAULT_VALUE_CREATOR_ID_SYSTEM = 0;

    int DEFAULT_VALUE_OFFSET = 0;

    int DEFAULT_VALUE_LIMIT = 10;

    String DEFAULT_VALUE_SORT_TYPE = "asc";

    int DEFAULT_VALUE_STATUS_YES = 1;

    int DEFAULT_VALUE_TYPE_SOURCE_ID = 0;

    String DEFAULT_VALUE_TYPE_SOURCE_STATUS = "0";

    int DEFAULT_VALUE_TYPE_CREATOR_ID = 1;

    int DEFAULT_VALUE_ZERO = 0;

    int DEFAULT_VALUE_STATUS_NO = 0;

    String SORT_ASC = "asc";

    String SORT_DESC = "desc";

}
